package com.qys.livesMall.open.mail;

import com.qys.livesMall.open.mail.core.MailServer;
import com.qys.livesMall.open.mail.modal.MailM;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class MailClient {

    public static void sendText(MailM m) {
        try {
            MailServer.send(m);
        } catch (Exception e) {
            log.error("发送失败：",e);
        }
    }

    public static void sendHtml(MailM m) {
        try {
            MailServer.sendHtml(m);
        } catch (Exception e) {
            log.error("发送失败：",e);
        }
    }

    public static void sendFile(MailM m) {
        try {
            MailServer.sendFile(m);
        } catch (Exception e) {
            log.error("发送失败：",e);
        }
    }


}
